package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_QLDTTXA_HoSo_DiemTong")
public class Tbl_QLDTTXA_HoSo_DiemTong implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private Tbl_QLDTTXA_HoSoXetTuyen hoSoId = null;
   private Double diemTong;
   private Tbl_QLDTTXA_DM_KetQuaXetTuyen ketQuaId = null;
   private Tbl_CanBo canBoId = null;
   private Date ngayXetTuyen;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="HoSoId")
   @ForeignKey(name="FK_tbl_QLDTTXA_HoSoXetTuyen_tbl_QLDTTXA_HoSo_DiemTong")
   public Tbl_QLDTTXA_HoSoXetTuyen getHoSoId() {
	    return hoSoId;
   }
   public void setHoSoId(Tbl_QLDTTXA_HoSoXetTuyen hoSoId) {
	    this.hoSoId=hoSoId;
   }

   public Double getDiemTong() {
   	return diemTong;
   }
   public void setDiemTong(Double diemTong) {
   	this.diemTong= diemTong;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="KetQuaId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_KetQuaXetTuyen_tbl_QLDTTXA_HoSo_DiemTong")
   public Tbl_QLDTTXA_DM_KetQuaXetTuyen getKetQuaId() {
	    return ketQuaId;
   }
   public void setKetQuaId(Tbl_QLDTTXA_DM_KetQuaXetTuyen ketQuaId) {
	    this.ketQuaId=ketQuaId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="canBoId")
   @ForeignKey(name="FK_tbl_CanBo_tbl_QLDTTXA_HoSo_DiemTong")
   public Tbl_CanBo getCanBoId() {
	    return canBoId;
   }
   public void setCanBoId(Tbl_CanBo canBoId) {
	    this.canBoId=canBoId;
   }

   public Date getNgayXetTuyen() {
   	return ngayXetTuyen;
   }
   public void setNgayXetTuyen(Date ngayXetTuyen) {
   	this.ngayXetTuyen= ngayXetTuyen;
   }
}//endClass 

